package com.example.jf.jfapp.utils;

import com.example.jf.jfapp.bean.bean.PariseRequestBean;

import okhttp3.Callback;
import okhttp3.OkHttpClient;
import okhttp3.Request;

/**常见的操作
 * Created by jf on 2017/7/30.
 */

public class OperationUtils {
    /**
     * 点赞操作
     *
     * @param requestBean
     */
    public static void parise(PariseRequestBean requestBean, Callback callback) {
        final Request request = RequestUtils.requestPOST(requestBean, Constant.URL.PRAISE);
        OkHttpClient okHttpClient = OkHttpUtils.getOkHttpClient();
        okHttpClient.newCall(request).enqueue(callback);
    }
}

